package com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00106;

import com.blankj.utilcode.util.ToastUtils;
import com.example.modelviewpresenter.Presenter.BasterPresenter;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00105.ClassroomDay00105Bean;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00105.ClassroomDay00105Callback;

import java.util.List;

/**
 * 作者:二徒
 * 时间：2021/10/28- 11:45
 * 功能实现：
 */
public class HappyDay00106Presenter extends BasterPresenter<HappyDay00106Contion.vier,HappyDay00106Contion.moder> {

    public HappyDay00106Presenter(HappyDay00106Contion.vier iew, HappyDay00106Contion.moder asd) {
        super(iew, asd);
    }


    public void happying(String name){
        asd.getmoder(name, new HappyDay00106Callback() {
            @Override
            public void suees(List<HappyDay00106Bean.DataBean> dataBeans) {
                iew.getvier(dataBeans);
            }

            @Override
            public void filai(String uet) {
                ToastUtils.showShort("失败"+uet);
            }
        });
    }
}
